import math { sqrt }

// ordinary function returning a value
fn get_hypot(a f64, b f64) f64 {
	c := sqrt(a * a + b * b)
	return c
}

fn main() {
	g := go get_hypot(54.06, 2.08) // spawn thread and get handle to it
	h1 := get_hypot(2.32, 16.74) // do some other calculation here
	h2 := g.wait() // get result from spawned thread
	println('Results: $h1, $h2') // prints `Results: 16.9, 54.1`
}
